
export default  {

    namespace: 'tab',

    state: {
        selectedIndex: 0,
        hidden: false
    },

    reducers: {

        changeIndex(state, {payload}) {
            return {
                ...state,
                selectedIndex:payload
            };
        }
    }

};